package com.chris.design.pattern.samples.chain.demo;

/**
 *
 *
 * @author Chris
 * @date 2018/08/10
 */
public class ChainClientTest {

    public static void main(String[] args) {
        ProjectManager p = new ProjectManager();
        DeptManager d = new DeptManager();
        d.setHandler(p);

        String dr = d.handleFeeRequest(DeptManager.class.getSimpleName(), 600);
        System.out.println("=========>>>dr:" + dr);
        System.out.println("====================================");


        String pr = p.handleFeeRequest(ProjectManager.class.getSimpleName(), 600);
        System.out.println("=========>>>dr:" + pr);
        System.out.println("====================================");


        String pr2 = p.handleFeeRequest(ProjectManager.class.getSimpleName(), 300);
        System.out.println("=========>>>dr:" + pr2);
        System.out.println("====================================");

    }
}
